package com.it.FactoryBean;

import com.it.utils.MyCalculator;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

/**
 * @Title: 心动的offer->13k
 * @Author 帅宏编码-coding
 * @Date 2025/1/20 星期一 15:49
 */
@Component
public class MyFactoryBean implements FactoryBean<MyCalculator> {
    @Override
    public MyCalculator getObject() throws Exception {
        MyCalculator myCalculator = new MyCalculator();
        return myCalculator;
    }

    @Override
    public Class<?> getObjectType() {
        return MyCalculator.class;
    }

}
